package com.zyf.chapter02.behavior.observer.p2p.refactor;

/**
 * @author yifeng
 */
public class RegNotificationObserver implements RegObserver{
    private NotificationService notificationService;
    @Override
    public void handleRegSuccess(long userId) {
        // 发送站内信
        notificationService.sendInboxMessage(userId, "Welcome...");
        // 还可以做其他事情
    }
}
